# 写一个copy 方法

file_path = 'file.txt'
file_path1 = 'file1.txt'

f1 = open(file_path, 'r')
f2 = open(file_path1, mode='w')

content = f1.read(10)
res = f2.write(content)
print(res)

f1.close()
f2.close()
